<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/css/H-ui.admin.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/h-ui/style.css">
    <script type="text/javascript" src="${ctx}/appjs/enterprise/enterpriseMember/enterpriseMember.js"></script>
    <style>
        .form-group img {
            cursor: pointer
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return '<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>客户管理</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>企业详情</strong>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a href="javascript:window.history.back()"><i class="fa fa-times"></i> 返回</a>' +
            '</li>' +
            '</ol>';
    });

</script>

<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <div class="columns pull-left">
                        <h5 class="font-bold">企业详情</h5>
                    </div>
                    <div class="ibox-tools">
                        <a class="close-link">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>

                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="frmEnterprise">
                        <input id="enterpriseId" name="enterpriseId" type="hidden"
                               value="${enterprise.enterpriseId}">
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">企业名称：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.enterpriseName}" name="enterpriseName" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">纳税人识别号：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.taxPayerCode}" name="taxPayerCode" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">营业执照：</label>
                            <div class="col-sm-8">
                                <div >
                                    <c:choose>
                                        <c:when test="${enterprise.companyImg1 !=null && enterprise.companyImg1 != ''}" >
                                            <div>
                                                <img id="companyImg1" name="companyImg1"  src="${enterprise.companyImg1}"
                                                     width="155px" height="120px">
                                            </div>
                                        </c:when>
                                        <c:otherwise>
                                            <div>
                                                <img id="companyImg1" name="companyImg1"  src="${ctx}/statics/img/upload-img.png"
                                                     style="position: relative" width="155px" height="120px">
                                            </div>
                                        </c:otherwise>
                                    </c:choose>
                                    <input type="file" id="file1" name="file1"/>
                                </div>
                                <span>图片尺寸建议为：<span class="text-danger">98px*75px</span></span>
                            </div>
                        </div>

<%--                        <div class="form-group row">--%>
<%--                            <label class="col-sm-3 col-form-label text-right">营业执照：</label>--%>
<%--                            <div class="col-sm-8">--%>
<%--                                <div>--%>
<%--                                    <div>--%>
<%--                                        <c:choose>--%>
<%--                                            <c:when test="${enterpriseMemberApply.companyImg2!=null && enterpriseMemberApply.companyImg2!=''}">--%>
<%--                                                <img id="companyImg2" src="${enterpriseMemberApply.companyImg2}"--%>
<%--                                                     width="155px" height="120px">--%>
<%--                                            </c:when>--%>
<%--                                            <c:otherwise>--%>
<%--                                                <img id="companyImg2" src="${ctx}/statics/img/upload-img.png"--%>
<%--                                                     style="position: relative" width="155px" height="120px">--%>
<%--                                            </c:otherwise>--%>
<%--                                        </c:choose>--%>
<%--                                        <input type="file" name="file2" id="file2"/>--%>
<%--                                    </div>--%>
<%--                                </div>--%>
<%--                                <span>图片尺寸建议为：<span class="text-danger">60px*60px</span></span>--%>
<%--                            </div>--%>
<%--                        </div>--%>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">开户行：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.enterpriseBank}" name="enterpriseBank" readonly>
                            </div>
                        </div>

                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">银行账户：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"
                                       value="${enterprise.enterpriseBankAccount}" name="enterpriseBankAccount" readonly >
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">法人姓名：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control"
                                       value="${enterprise.enterpriseOwner}" name="enterpriseOwner" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">法人电话：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.ownerMobile}" name="ownerMobile" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">负责人姓名：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.contactName}" name="contactName" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">负责人电话：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.phone}" name="phone" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">地址：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.address}" name="address" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">授信额：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.creditAmount}" name="creditAmount" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">累计充值额：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.allRechargeEnterpriseAccount}" name="allRechargeEnterpriseAccount" readonly>
                            </div>
                        </div>
                        <div class="form-group row">
                            <label class="col-sm-3 col-form-label text-right">账户余额：</label>
                            <div class="col-sm-4">
                                <input type="text" class="form-control" value="${enterprise.enterpriseAccount}" name="enterpriseAccount" readonly>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
